﻿
@{
    ViewBag.Title = "Index";
    Layout = "~/Views/Shared/_MyLayout.cshtml";
}

<!DOCTYPE html>

<body>
    <div id="minfoapp"> 
        <el-table :data="moneytable"
                  style="width: 100%">

            <el-table-column sortable
                             prop="s_id"
                             label="id">
            </el-table-column>
            <el-table-column sortable
                             prop="s_name"
                             label="姓名">
            </el-table-column>
            <el-table-column prop="s_sex"
                             label="性别">
            </el-table-column>
            <el-table-column sortable
                             prop="s_birth"
                             label="出生日期">
            </el-table-column>
            <el-table-column prop="s_native"
                             label="籍贯">
            </el-table-column>
            <el-table-column prop="s_degree"
                             label="学位">
            </el-table-column>
            <el-table-column prop="s_address"
                             label="地址">
            </el-table-column>
            <el-table-column prop="s_phone"
                             label="手机">
            </el-table-column>
            <el-table-column sortable
                             prop="s_standing"
                             label="工龄">
            </el-table-column>
            <el-table-column sortable
                             prop="m_workhours"
                             label="月工作天数">
            </el-table-column>
            <el-table-column prop="m_insurance"
                             label="月收益金额">
            </el-table-column>
            <el-table-column sortable
                             prop="m_sum"
                             label="缴纳保险金">
            </el-table-column>
            <el-table-column prop="m_salary"
                             label="薪水">
            </el-table-column>   
        </el-table>
    </div>
    <script>
        var moneyInfo = new Vue({
            el: '#minfoapp',
            data: {
                moneytable:[] ,
            },
            created() {
                this.getAllMoneyInfo();
            },
            methods: {
                getAllMoneyInfo(){
                    axios.post("/test/getMoneyInfo")
                        .then(function (response) {
                            moneyInfo.moneytable = response.data;
                        });
                } 
            }

        })

    </script>
</body>
